package org.o14x.alpha.ui.views.folder.columns;

import java.util.ArrayList;
import java.util.List;

/**
 * The manager for ColumnHelper objects.
 * 
 * @author Olivier DANGREAUX
 */
public class ColumnHelperManager {
	/**
	 * The list containing ColumnHelper objects.
	 */
	private List<ColumnHelper> columnHelperList;

	/**
	 * Returns the list of the enabled ColumnHelper.
	 *
	 * @return The list of the enabled ColumnHelper.
	 */
	public List<ColumnHelper> getEnabledColumnHelperList() {
		ArrayList<ColumnHelper> list = new ArrayList<ColumnHelper>();
		for (ColumnHelper columnHelper : columnHelperList) {
			if (columnHelper.isEnabled()) {
				list.add(columnHelper);
			}
		}

		return list;
	}

	/**
	 * Returns the value of columnHelperList.
	 *
	 * @return The value of columnHelperList.
	 */
	public List<ColumnHelper> getColumnHelperList() {
		return columnHelperList;
	}

	/**
	 * Sets the value of columnHelperList.
	 *
	 * @param columnHelperList The value of columnHelperList to set.
	 */
	public void setColumnHelperList(List<ColumnHelper> columnHelperList) {
		this.columnHelperList = columnHelperList;
	}
}
